package com.nchu.commondevelopmentframework.converter;

import com.nchu.commondevelopmentframework.entity.Role;
import com.nchu.commondevelopmentframework.vo.RoleListVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @InterfaceName: RoleConverter
 * @description: 角色转换类
 * @author: Li Chuanwei
 * @date: 2024/02/24 20:07
 **/
@Mapper
public interface RoleConverter {
    RoleConverter INSTANCE = Mappers.getMapper(RoleConverter.class);
    RoleListVO menuToRoleListVO(Role role);

    List<RoleListVO> menusToRoleListVOs(List<Role> roles);
}
